# 函数式编程

num_list = [1, 2, 3, 4, 5]


def find_single(func):
    for num in num_list:
        if func(num):
            return num


def find_cardinal(num):
    return num % 2 != 2


def find_dev3_or_dev5(num):
    return num % 3 == 0 or num % 5 == 0


print(find_single(find_cardinal))
print(find_single(find_dev3_or_dev5))
